using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using mojoPortal.Data;


public partial class MyCustomModules_Legends : System.Web.UI.UserControl
{
    string conn = System.Configuration.ConfigurationManager.AppSettings.Get("MSSQLConnectionString");
    DataSet ds = new DataSet();
    
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            // Get status information
            ds = mojoPortal.Data.SqlHelper.ExecuteDataset(
                conn, CommandType.StoredProcedure, "usp_GetStatusUpdatesAudit",
                new System.Data.SqlClient.SqlParameter("@DocID", Request.QueryString["DocID"]));

            grdLegends.DataSource = ds.Tables[0];
            grdLegends.DataBind();

         
        }
    }
}
